PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Geometric / Tunnel Spheres / martin - tunnel race [meta mash] nz+.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=2 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=0 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=0 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=0 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.172 |
| 26 | fWaveScale=1.008 |
| 27 | fWaveSmoothing=0.000 |
| 28 | fWaveParam=-0.400 |
| 29 | fModWaveAlphaStart=0.000 |
| 30 | fModWaveAlphaEnd=1.000 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=1.000 |
| 45 | wave_g=1.000 |
| 46 | wave_b=1.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=1.000 |
| 53 | ob_a=0.300 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=0.850 |
| 64 | mv_r=0.500 |
| 65 | mv_g=0.500 |
| 66 | mv_b=0.500 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=1 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=1 |
| 79 | wavecode_0_bUseDots=1 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=1 |
| 82 | wavecode_0_scaling=0.16678 |
| 83 | wavecode_0_smoothing=0.00000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=0.300 |
| 86 | wavecode_0_b=0.210 |
| 87 | wavecode_0_a=1.000 |
| 88 | wave_0_per_point1=x = x + 0.105*sin(time*0.27); |
| 89 | wave_0_per_point2=y = y + 0.103*sin(time*0.13); |
| 90 | wavecode_1_enabled=0 |
| 91 | wavecode_1_samples=512 |
| 92 | wavecode_1_sep=0 |
| 93 | wavecode_1_bSpectrum=0 |
| 94 | wavecode_1_bUseDots=0 |
| 95 | wavecode_1_bDrawThick=0 |
| 96 | wavecode_1_bAdditive=0 |
| 97 | wavecode_1_scaling=1.00000 |
| 98 | wavecode_1_smoothing=0.50000 |
| 99 | wavecode_1_r=1.000 |
| 100 | wavecode_1_g=1.000 |
| 101 | wavecode_1_b=1.000 |
| 102 | wavecode_1_a=1.000 |
| 103 | wavecode_2_enabled=0 |
| 104 | wavecode_2_samples=512 |
| 105 | wavecode_2_sep=0 |
| 106 | wavecode_2_bSpectrum=0 |
| 107 | wavecode_2_bUseDots=0 |
| 108 | wavecode_2_bDrawThick=0 |
| 109 | wavecode_2_bAdditive=0 |
| 110 | wavecode_2_scaling=1.00000 |
| 111 | wavecode_2_smoothing=0.50000 |
| 112 | wavecode_2_r=1.000 |
| 113 | wavecode_2_g=1.000 |
| 114 | wavecode_2_b=1.000 |
| 115 | wavecode_2_a=1.000 |
| 116 | wavecode_3_enabled=0 |
| 117 | wavecode_3_samples=512 |
| 118 | wavecode_3_sep=0 |
| 119 | wavecode_3_bSpectrum=0 |
| 120 | wavecode_3_bUseDots=0 |
| 121 | wavecode_3_bDrawThick=0 |
| 122 | wavecode_3_bAdditive=0 |
| 123 | wavecode_3_scaling=1.00000 |
| 124 | wavecode_3_smoothing=0.50000 |
| 125 | wavecode_3_r=1.000 |
| 126 | wavecode_3_g=1.000 |
| 127 | wavecode_3_b=1.000 |
| 128 | wavecode_3_a=1.000 |
| 129 | shapecode_0_enabled=1 |
| 130 | shapecode_0_sides=3 |
| 131 | shapecode_0_additive=0 |
| 132 | shapecode_0_thickOutline=0 |
| 133 | shapecode_0_textured=0 |
| 134 | shapecode_0_num_inst=1 |
| 135 | shapecode_0_x=0.370 |
| 136 | shapecode_0_y=0.500 |
| 137 | shapecode_0_rad=6.81129 |
| 138 | shapecode_0_ang=3.64425 |
| 139 | shapecode_0_tex_ang=0.00000 |
| 140 | shapecode_0_tex_zoom=1.00000 |
| 141 | shapecode_0_r=0.000 |
| 142 | shapecode_0_g=0.000 |
| 143 | shapecode_0_b=0.000 |
| 144 | shapecode_0_a=0.500 |
| 145 | shapecode_0_r2=0.000 |
| 146 | shapecode_0_g2=0.000 |
| 147 | shapecode_0_b2=0.000 |
| 148 | shapecode_0_a2=0.500 |
| 149 | shapecode_0_border_r=1.000 |
| 150 | shapecode_0_border_g=1.000 |
| 151 | shapecode_0_border_b=1.000 |
| 152 | shapecode_0_border_a=1.000 |
| 153 | shape_0_init1=t1 = int(rand(100))*0.01; |
| 154 | shape_0_init2=t2 = int(rand(100))*0.01; |
| 155 | shape_0_per_frame1=ang = time*(0.03 + 0.01*t1); |
| 156 | shape_0_per_frame2=rad = rad * (0.9 + 0.2*t2); |
| 157 | shape_0_per_frame3=r = min(1,max(0,r + 0.02*sin(time*0.417 + 1))); |
| 158 | shape_0_per_frame4=g = min(1,max(0,g + 0.02*sin(time*0.391 + 2))); |
| 159 | shape_0_per_frame5=b = min(1,max(0,b + 0.02*sin(time*0.432 + 4))); |
| 160 | shape_0_per_frame6=r2 = min(1,max(0,r2 + 0.02*sin(time*0.657 + 3))); |
| 161 | shape_0_per_frame7=g2 = min(1,max(0,g2 + 0.02*sin(time*0.737 + 5))); |
| 162 | shape_0_per_frame8=b2 = min(1,max(0,b2 + 0.02*sin(time*0.884 + 6))); |
| 163 | shapecode_1_enabled=1 |
| 164 | shapecode_1_sides=100 |
| 165 | shapecode_1_additive=1 |
| 166 | shapecode_1_thickOutline=0 |
| 167 | shapecode_1_textured=1 |
| 168 | shapecode_1_num_inst=1 |
| 169 | shapecode_1_x=0.370 |
| 170 | shapecode_1_y=0.500 |
| 171 | shapecode_1_rad=0.89796 |
| 172 | shapecode_1_ang=3.64425 |
| 173 | shapecode_1_tex_ang=0.00000 |
| 174 | shapecode_1_tex_zoom=1.00000 |
| 175 | shapecode_1_r=1.000 |
| 176 | shapecode_1_g=1.000 |
| 177 | shapecode_1_b=0.800 |
| 178 | shapecode_1_a=0.500 |
| 179 | shapecode_1_r2=0.000 |
| 180 | shapecode_1_g2=0.000 |
| 181 | shapecode_1_b2=0.000 |
| 182 | shapecode_1_a2=1.000 |
| 183 | shapecode_1_border_r=1.000 |
| 184 | shapecode_1_border_g=1.000 |
| 185 | shapecode_1_border_b=1.000 |
| 186 | shapecode_1_border_a=0.000 |
| 187 | shape_1_init1=t1 = int(rand(100))*0.01; |
| 188 | shape_1_init2=t2 = int(rand(100))*0.01; |
| 189 | shape_1_per_frame1=x = x + 0.05*sin(time*0.015+3); |
| 190 | shape_1_per_frame2=y = y + 0.03*sin(time*0.019+1); |
| 191 | shape_1_per_frame3=tex_ang = time*(0.01 + 0.0001*t1); |
| 192 | shape_1_per_frame4=r = min(1,max(0,r + 0.01*sin(time*0.417 + 1))); |
| 193 | shape_1_per_frame5=g = min(1,max(0,g + 0.01*sin(time*0.391 + 2))); |
| 194 | shape_1_per_frame6=b = min(1,max(0,b + 0.01*sin(time*0.432 + 4))); |
| 195 | shape_1_per_frame7=r2 = min(1,max(0,r2 + 0.01*sin(time*0.457 + 3))); |
| 196 | shape_1_per_frame8=g2 = min(1,max(0,g2 + 0.01*sin(time*0.437 + 5))); |
| 197 | shape_1_per_frame9=b2 = min(1,max(0,b2 + 0.01*sin(time*0.484 + 6))); |
| 198 | shapecode_2_enabled=1 |
| 199 | shapecode_2_sides=100 |
| 200 | shapecode_2_additive=1 |
| 201 | shapecode_2_thickOutline=0 |
| 202 | shapecode_2_textured=1 |
| 203 | shapecode_2_num_inst=1 |
| 204 | shapecode_2_x=0.670 |
| 205 | shapecode_2_y=0.430 |
| 206 | shapecode_2_rad=0.51386 |
| 207 | shapecode_2_ang=4.20974 |
| 208 | shapecode_2_tex_ang=0.00000 |
| 209 | shapecode_2_tex_zoom=1.00000 |
| 210 | shapecode_2_r=1.000 |
| 211 | shapecode_2_g=0.700 |
| 212 | shapecode_2_b=1.000 |
| 213 | shapecode_2_a=1.000 |
| 214 | shapecode_2_r2=0.000 |
| 215 | shapecode_2_g2=0.000 |
| 216 | shapecode_2_b2=0.000 |
| 217 | shapecode_2_a2=1.000 |
| 218 | shapecode_2_border_r=1.000 |
| 219 | shapecode_2_border_g=1.000 |
| 220 | shapecode_2_border_b=1.000 |
| 221 | shapecode_2_border_a=0.000 |
| 222 | shape_2_init1=t1 = int(rand(100))*0.01; |
| 223 | shape_2_init2=t2 = int(rand(100))*0.01; |
| 224 | shape_2_per_frame1=x = x + 0.05*sin(time*0.027); |
| 225 | shape_2_per_frame2=y = y + 0.03*sin(time*0.013); |
| 226 | shape_2_per_frame3=tex_ang = time*(0.02 + 0.0001*t1); |
| 227 | shape_2_per_frame4=rad = rad * (0.9 + 0.2*t2); |
| 228 | shape_2_per_frame5=r = min(1,max(0,r + 0.01*sin(time*0.417 + 1))); |
| 229 | shape_2_per_frame6=g = min(1,max(0,g + 0.01*sin(time*0.391 + 2))); |
| 230 | shape_2_per_frame7=b = min(1,max(0,b + 0.01*sin(time*0.432 + 4))); |
| 231 | shape_2_per_frame8=r2 = min(1,max(0,r2 + 0.01*sin(time*0.457 + 3))); |
| 232 | shape_2_per_frame9=g2 = min(1,max(0,g2 + 0.01*sin(time*0.437 + 5))); |
| 233 | shape_2_per_frame10=b2 = min(1,max(0,b2 + 0.01*sin(time*0.484 + 6))); |
| 234 | shapecode_3_enabled=1 |
| 235 | shapecode_3_sides=100 |
| 236 | shapecode_3_additive=1 |
| 237 | shapecode_3_thickOutline=0 |
| 238 | shapecode_3_textured=1 |
| 239 | shapecode_3_num_inst=1 |
| 240 | shapecode_3_x=0.500 |
| 241 | shapecode_3_y=0.500 |
| 242 | shapecode_3_rad=0.22298 |
| 243 | shapecode_3_ang=0.00000 |
| 244 | shapecode_3_tex_ang=0.00000 |
| 245 | shapecode_3_tex_zoom=1.00000 |
| 246 | shapecode_3_r=1.000 |
| 247 | shapecode_3_g=1.000 |
| 248 | shapecode_3_b=1.000 |
| 249 | shapecode_3_a=1.000 |
| 250 | shapecode_3_r2=0.000 |
| 251 | shapecode_3_g2=0.000 |
| 252 | shapecode_3_b2=0.000 |
| 253 | shapecode_3_a2=1.000 |
| 254 | shapecode_3_border_r=1.000 |
| 255 | shapecode_3_border_g=1.000 |
| 256 | shapecode_3_border_b=1.000 |
| 257 | shapecode_3_border_a=0.000 |
| 258 | shape_3_per_frame1=x = x + 0.2*sin(time*0.025); |
| 259 | shape_3_per_frame2=y = y + 0.1*sin(time*0.05+2); |
| 260 | per_frame_init_1=prox = 1; |
| 261 | per_frame_1=chng=sin(time*.5); |
| 262 | per_frame_2=cthr=.9999; |
| 263 | per_frame_3=mq21=if(above(chng,cthr),rand(3),mq21); |
| 264 | per_frame_4=mq22=if(above(chng,cthr),rand(3),mq22); |
| 265 | per_frame_5=mq23=if(above(chng,cthr),rand(3),mq23); |
| 266 | per_frame_6=mq24=if(above(chng,cthr),rand(2),mq24); |
| 267 | per_frame_7=mq25=if(above(chng,cthr),rand(2),mq25); |
| 268 | per_frame_8=mq26=if(above(chng,cthr),rand(2),mq26); |
| 269 | per_frame_9=mq27=if(above(chng,cthr),rand(1),mq27); |
| 270 | per_frame_10=mq28=if(above(chng,cthr),rand(1),mq28); |
| 271 | per_frame_11=mq29=if(above(chng,cthr),rand(1)*.3,mq29); |
| 272 | per_frame_12=mq31=if(above(chng,cthr),rand(1)*.3,mq31); |
| 273 | per_frame_13=monitor=chng; |
| 274 | per_frame_14=q21=mq21;q22=mq22;q23=mq23;q24=mq24;q25=mq25;q26=mq26; |
| 275 | per_frame_15=q27=mq27;q28=mq28;q29=mq29;q31=mq31; |
| 276 | per_frame_16= |
| 277 | per_frame_17=monitor=mq1; |
| 278 | per_frame_18=vol=bass+treb+mid; |
| 279 | per_frame_19=atime=atime+vol; |
| 280 | per_frame_20=q11=.4+sin(atime*.006 )*.4; |
| 281 | per_frame_21=q12=.4+cos(atime*.00613828348)*.4; |
| 282 | per_frame_22=q13=.4+sin(atime*.00598593455)*.4; |
| 283 | per_frame_23=monitor=q13; |
| 284 | per_frame_24= |
| 285 | per_frame_25=dec_med = pow (0.8, 30/fps); |
| 286 | per_frame_26=dec_slow = pow (0.95, 30/fps); |
| 287 | per_frame_27=//dec_xlow = pow (0.999, 30/fps); |
| 288 | per_frame_28=beat = max (max (bass, mid), treb); |
| 289 | per_frame_29=avg = avg*dec_slow + beat*(1-dec_slow); |
| 290 | per_frame_30=is_beat = above(beat, .2+avg+peak) * above (time, t0+.2); |
| 291 | per_frame_31=t0 = is_beat*time + (1-is_beat)*t0; |
| 292 | per_frame_32=peak = is_beat * beat + (1-is_beat)*peak*dec_med; |
| 293 | per_frame_33=index = (index + is_beat) %32; |
| 294 | per_frame_34=index2 = (index2 + is_beat*bnot(index))%4; |
| 295 | per_frame_35= |
| 296 | per_frame_36=q22 = peak; |
| 297 | per_frame_37=q24 = is_beat; |
| 298 | per_frame_38=q26 = bass_att + mid_att + treb_att; |
| 299 | per_frame_39=vol = vol*dec_med + (1-dec_med)*q26; |
| 300 | per_frame_40=q27 = index + 1; |
| 301 | per_frame_41=q28 = index2 +1; |
| 302 | per_frame_42= |
| 303 | per_frame_43=p2 = .3*sin(time) + .3*cos(time/3); |
| 304 | per_frame_44=//*****tunnel tilting |
| 305 | per_frame_45=q1 = cos(p2 * 3.1416/4); |
| 306 | per_frame_46=q2 = sin(p2 * 3.1416/4); |
| 307 | per_frame_47=q3 = -q2; |
| 308 | per_frame_48=q4 = q1; |
| 309 | per_frame_49= |
| 310 | per_frame_50=//****tunnel viewpoint x,y |
| 311 | per_frame_51=vtrig = is_beat * bnot(index%2); |
| 312 | per_frame_52=vx = vx * bnot(vtrig) + vtrig * (int(rand(100))/100-.5); |
| 313 | per_frame_53=vy = vy * bnot(vtrig) + vtrig * (int(rand(100))/100-.5); |
| 314 | per_frame_54=vx = vx* below(index%15,5); //### |
| 315 | per_frame_55=vy = vy* below(index%15,5); |
| 316 | per_frame_56=q5 = vx*10; |
| 317 | per_frame_57=q6 = vy*12; |
| 318 | per_frame_58= |
| 319 | per_frame_59=//***tunnel width |
| 320 | per_frame_60=q21 = (1+sin(time/12))/8+.01; |
| 321 | per_frame_61= |
| 322 | per_frame_62=//**floor proximity |
| 323 | per_frame_63=prox = prox - above(vy,.3)*prox*2; |
| 324 | per_frame_64=q32 = .5 + .2*prox; |
| 325 | per_frame_65=monitor = prox; |
| 326 | per_frame_66= |
| 327 | per_frame_67=//****tunnel rotation |
| 328 | per_frame_68=rota = rota +.01*below(index%16,8)/fps*30; |
| 329 | per_frame_69=rota1 = rota1*dec_med + (1-dec_med)*rota; |
| 330 | per_frame_70=q7 = rota1; |
| 331 | per_frame_71= |
| 332 | per_frame_72=//****tunnel speed |
| 333 | per_frame_73=movez = movez + 1.2/(1+abs(vx)+abs(vy))/fps; |
| 334 | per_frame_74=q8 = movez * (1+q21/4); |
| 335 | per_frame_75=//dyn. Aenderung von q21 bewirkt auch Richt.wechsel |
| 336 | per_frame_76= |
| 337 | per_frame_77=//*********************** |
| 338 | per_frame_78=trig1= q24*bnot(index%12); |
| 339 | per_frame_79=trig2= q24*bnot((index+4)%12); |
| 340 | per_frame_80=trig3= q24*bnot((index+8)%12); |
| 341 | per_frame_81=trel = trel + vol/fps; |
| 342 | per_frame_82=z0 = 1; |
| 343 | per_frame_83=speed = vol/2; |
| 344 | per_frame_84=hx = sin(trel); |
| 345 | per_frame_85=hy = cos(trel); |
| 346 | per_frame_86= |
| 347 | per_frame_87=p1z = bnot(trig1)* (p1z + (5+p1z)*speed/fps)+trig1*z0; |
| 348 | per_frame_88=p1z = max(p1z,.1); |
| 349 | per_frame_89=q9 = hx/(p1z); |
| 350 | per_frame_90=q10 = hy/(p1z); |
| 351 | per_frame_91=q11 = p1z; |
| 352 | per_frame_92=q12 = .1+.02*q26*bnot((index+2)%3)*p1z*exp(-p1z/100); |
| 353 | per_frame_93= |
| 354 | per_frame_94=p2z = bnot(trig2)* (p2z + (5+p2z)*speed/fps)+trig2*z0; |
| 355 | per_frame_95=p2z = max(p2z,.1); |
| 356 | per_frame_96=q13 = 2*hx/(p2z); |
| 357 | per_frame_97=q14 = -.5*hy/(p2z); |
| 358 | per_frame_98=q15 = p2z; |
| 359 | per_frame_99=q16 = .1+.02*q26*bnot((index+2)%3)*p2z*exp(-p2z/100); |
| 360 | per_frame_100= |
| 361 | per_frame_101= |
| 362 | per_frame_102=p3z = bnot(trig3)* (p3z + (5+p3z)*speed/fps)+trig3*z0; |
| 363 | per_frame_103=p3z = max(p3z,.1); |
| 364 | per_frame_104=q17 = -1.4*hx/(p3z); |
| 365 | per_frame_105=q18 = 2*hy/(p3z); |
| 366 | per_frame_106=q19 = p3z; |
| 367 | per_frame_107=q20 = .1+.02*q26*bnot((index+2)%3)*p3z*exp(-p3z/100); |
| 368 | warp_1=`shader_body |
| 369 | warp_2=`{ |
| 370 | warp_3=` // sample previous frame |
| 371 | warp_4=` ret.xyz = tex2D( sampler_main, uv ).xyz; |
| 372 | warp_5=` |
| 373 | warp_6=` // take the difference between the crisp and blurred images, |
| 374 | warp_7=` // then add it back into the image. Creates spots and stripes over time. |
| 375 | warp_8=` ret.xyz += (ret.xyz - GetBlur2(uv))*0.3; |
| 376 | warp_9=`float4 noise9 = tex3D(sampler_noisevol_hq, |
| 377 | warp_10=` ((uv.xyy*q27 |
| 378 | warp_11=` )*texsize.xyy*texsize_noisevol_hq.zww |
| 379 | warp_12=` ).xyz* |
| 380 | warp_13=` float3(1,1,0)*0.05 + |
| 381 | warp_14=` time*float3(0,0,1)*q29 |
| 382 | warp_15=` ); |
| 383 | warp_16=`if(ret.x> q21*q13 && ret.x<= q24*q11 )ret.y += (noise9).x*.5; |
| 384 | warp_17=`if(ret.y> q22*q11 && ret.y<= q25*q12 )ret.z += (noise9).y*.5; |
| 385 | warp_18=`if(ret.z> q23*q12 && ret.z<= q26*q13 )ret.x += (noise9).z*.5; |
| 386 | warp_19=` ret.xyz *= 0.9; |
| 387 | warp_20=` |
| 388 | warp_21=` // add noise: |
| 389 | warp_22=` float2 dither_uv = uv_orig*texsize.xy*texsize_noise_lq.zw * 0.4 + rand_frame.xy; |
| 390 | warp_23=` ret.xyz += (tex2D(sampler_noise_lq, dither_uv).xyz-0.5)/256.0 * 122 * saturate(treb_att-1); |
| 391 | warp_24=` |
| 392 | warp_25=` // desaturate over time, to keep the globs white |
| 393 | warp_26=` ret.xyz = lerp(ret.xyz, lum(ret.xyz), 0.2); |
| 394 | warp_27=`} |
| 395 | comp_1=`sampler sampler_pw_noise_lq; |
| 396 | comp_2=` |
| 397 | comp_3=`float k1, k2, mask1, mask2, mask3, rad1, rad2, rad3; |
| 398 | comp_4=`float2 rs, rss, rss0, rs0, uv2, uv3,uv4, rsk, uvo; |
| 399 | comp_5=`float2 dz1, dz2, dz3, Kugel1, Kugel2, Kugel3,tmp; |
| 400 | comp_6=`float3 noise, ret1, ret2; |
| 401 | comp_7=` |
| 402 | comp_8=`shader_body { |
| 403 | comp_9=`uvo = uv; |
| 404 | comp_10=`uv = mul(uv*aspect.xy,float2x2(_qa)); |
| 405 | comp_11=` |
| 406 | comp_12=`uv = uv + -.0- .1*float2(q5,q6); |
| 407 | comp_13=`float2 uv1 = (uv-.5 );//*aspect.xy; |
| 408 | comp_14=` |
| 409 | comp_15=`//Kugel1 |
| 410 | comp_16=`rsk = (uv1 + float2 (q9,q10)) ; |
| 411 | comp_17=`dz1 = normalize(rsk); |
| 412 | comp_18=`rad1 = q11*length (rsk) ; |
| 413 | comp_19=`uv4 = tan(rad1)*dz1; |
| 414 | comp_20=`mask1 = saturate(8-8*rad1); |
| 415 | comp_21=`Kugel1 = uv4*mask1; |
| 416 | comp_22=` |
| 417 | comp_23=`//Kugel2 |
| 418 | comp_24=`rsk = (uv1 + float2 (q13,q14)) ; |
| 419 | comp_25=`dz2 = normalize(rsk); |
| 420 | comp_26=`rad2 = q15*length (rsk) ; |
| 421 | comp_27=`uv4 = tan(rad2)*dz2; |
| 422 | comp_28=`mask2 = saturate(8-8*rad2); |
| 423 | comp_29=`Kugel2 = uv4*mask2; |
| 424 | comp_30=` |
| 425 | comp_31=`//Kugel3 |
| 426 | comp_32=`rsk = (uv1 + float2 (q17,q18)) ; |
| 427 | comp_33=`dz3 = normalize(rsk); |
| 428 | comp_34=`rad3 = q19*length (rsk) ; |
| 429 | comp_35=`uv4 = tan(rad3)*dz3; |
| 430 | comp_36=`mask3 = saturate(8-8*rad3); |
| 431 | comp_37=`Kugel3 = uv4*mask3; |
| 432 | comp_38=` |
| 433 | comp_39=`float2 dz = (Kugel2 + Kugel1 + Kugel3)*.2; |
| 434 | comp_40=`//******************** STARS |
| 435 | comp_41=`uv1 += dz; |
| 436 | comp_42=`rss0.x = atan2(uv1.x, uv1.y)/3.1416; |
| 437 | comp_43=`rss0.y = .1*q21/(length (uv1)); |
| 438 | comp_44=` |
| 439 | comp_45=`rss = float2 (rss0.x,rss0.y+time); |
| 440 | comp_46=`rss = mul(rss,float2x2(.7,.7,-.7,.7)); |
| 441 | comp_47=`float noise = (tex2D(sampler_pw_noise_lq,rss/32)-.5 >= 0); |
| 442 | comp_48=`tmp = abs(frac(rss*8)-.5); |
| 443 | comp_49=`float3 dots = saturate(.04/length(tmp)) *noise; |
| 444 | comp_50=` |
| 445 | comp_51=`rss = float2 (rss0.x,rss0.y+time/4); |
| 446 | comp_52=`rss = mul(rss,float2x2(.7,.7,-.7,.7)); |
| 447 | comp_53=`noise = (tex2D(sampler_pw_noise_lq,rss/32)-.5 >= 0); |
| 448 | comp_54=`tmp = abs(frac(rss*8)-.5); |
| 449 | comp_55=`dots += saturate(.02/length(tmp)) * noise; |
| 450 | comp_56=` |
| 451 | comp_57=`dots *= saturate(.2/abs(rss0.y)); |
| 452 | comp_58=`dots *= dots*.6; |
| 453 | comp_59=`//************************* |
| 454 | comp_60=` |
| 455 | comp_61=`float z = q32/(uv1.y-.02);//floor proxy |
| 456 | comp_62=`float mask = saturate(4/z); |
| 457 | comp_63=`rs0.x = (uv1.x)*z; |
| 458 | comp_64=`rs0.y = z/4; |
| 459 | comp_65=`rs.x = rs0.x ; |
| 460 | comp_66=`rs.y = rs0.y + q8*3; |
| 461 | comp_67=`float3 mirror = lum(tex2D(sampler_pw_noise_lq,.02*rs))-.5; |
| 462 | comp_68=`z = .2/(length(uv1)-q21); |
| 463 | comp_69=`uv2.y = z + q8; |
| 464 | comp_70=`uv2.x = rss0.x +q7; |
| 465 | comp_71=`uv3 =frac(uv2 +.0*mask*mirror); |
| 466 | comp_72=` |
| 467 | comp_73=`ret1 = tex2D (sampler_main,uv3)/z; |
| 468 | comp_74=`ret = max(ret1*(1-0.5*mask),mirror*mask) +dots; |
| 469 | comp_75=` |
| 470 | comp_76=`float mod = q22*2; |
| 471 | comp_77=`float3 blk = abs(rsqrt(rad1)*dz1.x*roam_sin |
| 472 | comp_78=`+rsqrt(rad2)*dz2.y*roam_sin.rbg |
| 473 | comp_79=`+rsqrt(rad3)*dz3.x*roam_sin.bgr)*(.2+mirror*mask)*mod; |
| 474 | comp_80=`ret += blk; |
| 475 | comp_81=` |
| 476 | comp_82=`float4 noise9 = tex3D(sampler_noisevol_hq, |
| 477 | comp_83=` ((uv3.xyy*q28 |
| 478 | comp_84=` )*texsize.xyy*texsize_noisevol_hq.zww |
| 479 | comp_85=` ).xyz* |
| 480 | comp_86=` float3(1,1,0)*0.05 + |
| 481 | comp_87=` time*float3(0,0,1)*q31 |
| 482 | comp_88=` ); |
| 483 | comp_89=`if(ret.x> q26*q13 && ret.x<= q23*q11 )ret.z -= (noise9).x*.5; |
| 484 | comp_90=`if(ret.y> q25*q11 && ret.y<= q22*q12 )ret.x -= (noise9).y*.5; |
| 485 | comp_91=`if(ret.z> q24*q12 && ret.z<= q21*q13 )ret.y -= (noise9).z*.5; |
| 486 | comp_92=`ret2 = saturate(.02*q22*q21/length (uv1)* |
| 487 | comp_93=` (lum(tex2D (sampler_main,uv1+.5)))); |
| 488 | comp_94=`ret2 /= (length(uv1)+.02); |
| 489 | comp_95=`float k1 = lum(ret2); |
| 490 | comp_96=`ret += k1*float3(1,k1,k1/2) ; |
| 491 | comp_97=`} |